#include "player.h"
#include "protocolNetwork.h"
#include "inetworkmanager.h"

#include "game.h"

int main()
{
  PortableNetworkManager *p = new PortableNetworkManager();
  PortableSocket *s = new PortableSocket();
  s->connect("127.0.0.1", 4243, IPortableSocket::TCP);
  Player *pl = new Player(s);
  pl->getProto()->sendPacket(pl);
  char *buf = new char[4096];
  int size = pl->getWriteBuffer()->extract(buf, 4096);
  pl->getSocket()->send(buf, size);
}
